import { requestType } from '~/config/enum.config'

const SERVICE = 'domain-service'
const CONTROLLER = 'customerComplain'

export default {
  /**
   * 查询客诉列表
   */
  getCustomerComplainList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getCustomerComplainList',
    type: requestType.Get
  },
  /**
   * 登记客诉-保存
   */
  saveComplain: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'saveComplain',
    type: requestType.Post
  },
  /**
   * 根据客户号查询客户姓名
   */
  getCustNameById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getCustNameById',
    type: requestType.Get
  },
  /**
   * 查询投诉人员列表
   */
  getComplainUserNameList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getComplainUserNameList',
    type: requestType.Get
  },
  /**
   * 查询投诉外包公司列表
   */
  getComplainCompanyNameList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getComplainCompanyNameList',
    type: requestType.Get
  },
  /**
   * 查询历史跟进纪录
   */
  getComplainHistoryList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getComplainHistoryList',
    type: requestType.Get
  },
  /**
   * 查询客诉信息（编辑）
   */
  getCustomerComplainById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getCustomerComplainById',
    type: requestType.Get
  },
}
